package com.zaydanwu.cla.service.Impl;

import com.zaydanwu.cla.dao.TeacherMessageMapper;
import com.zaydanwu.cla.model.TeacherMessage;
import com.zaydanwu.cla.service.TeacherMessageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author wzo
 * @since 2.0.0 2018-12-13
 */
@Service
public class TeacherMessageServiceImpl implements TeacherMessageService {

    @Resource
    private TeacherMessageMapper teacherMessageMapper;

    @Override
    public TeacherMessage getTeacherMessage(String name) {
        return teacherMessageMapper.getTeacherMessage(name);
    }

    @Override
    public int saveTeacherMessage(TeacherMessage teacherMessage) {
        return teacherMessageMapper.insert(teacherMessage);
    }

}
